%& C:\Users\WOLFG_~1\AppData\Roaming\TikzEdt\TikzEdt\023~1.0\TEMP_H~1
\begin{document}
\usetikzlibrary{shapes}

\begin{tikzpicture}[->,scale=1,label distance=-3mm]
	    \tikzstyle{every node}=[draw,shape=ellipse,minimum size=6mm,font=\ttfamily\tiny];
	    \tikzstyle{every path} = [draw,font=\tiny];
	    \node (1) at (-10,2) {$l1 : \cfo{league}$};
           \node (2) at (-10,3.5) {$r1 : \cfo{round}$};
           \node (3) at (-5.5,3.5) {$m1 : \cfo{match}$};
           \node (4) at (-5.5,0.5) {$m2 : \cfo{match}$};
           \node (5) at (-10,0.5) {$r2 : \cfo{round}$};
           \node (6) at (-5.5,2) {$t1 : \cfo{team}$};
           
           \node (7) at (-12.5,2) {2013};
         
        

        \tikzstyle{every node} = [];
        \draw (1) to node [above] {\textbf{year}} (7);
        \draw (2) to node [right] {$BELONGS\mhyphen TO$} (1);
        \draw (5) to node [right] {$BELONGS\mhyphen TO$} (1);
        \draw (3) to node [above] {$PLAYED\mhyphen IN$} (2);
        \draw (4) to node [below] {$PLAYED\mhyphen IN$} (5);
        \draw (3) to node [left] {$HOME$} (6);
        \draw (4) to node [left] {$HOME$} (6);

\usetikzlibrary{calc}
\pgftransformreset
\node[inner sep=0pt,outer sep=0pt,minimum size=0pt,line width=0pt,text width=0pt,text height=0pt] at (current bounding box) {};
%add border to avoid cropping by pdflibnet
\foreach \border in {0.1}
  \useasboundingbox (current bounding box.south west)+(-\border,-\border) rectangle (current bounding box.north east)+(\border,\border);
\newwrite\metadatafile
\immediate\openout\metadatafile=\jobname_BB.txt
\path
  let
    \p1=(current bounding box.south west),
    \p2=(current bounding box.north east)
  in
  node[inner sep=0pt,outer sep=0pt,minimum size=0pt,line width=0pt,text width=0pt,text height=0pt,draw=white] at (current bounding box) {
\immediate\write\metadatafile{\p1,\p2}
};
\immediate\closeout\metadatafile
\end{tikzpicture}

\end{document}
